package com.zy.util;

import java.util.Random;

/**
 * @author 29787
 */
public class RandomNum {

    public static Integer getRandomID(Integer n) {
        Random random = new Random();
        String result = "";
        for (int i = 0; i < n; i++) {
            result += random.nextInt(10);
        }
        return Integer.valueOf(result);
    }
}
